package com.cn.hnust.service;

import java.util.List;

import com.cn.hnust.pojo.Message;
import com.cn.hnust.util.Page;

public interface IMessageService {

public Message getUserById(Integer userId) throws Exception;
	
	public List<Message> getUsers();
	
	public Message getUser(String message_name);

	public int getCounts(String message_name);

	
	public int insert(Message user); 
	
	public int  delmessage(Integer id);
	
	public List<Message> selectPersons(String message_name,Page page);
	
	public List<Message> queryAllRecord(Page page);
	  
	public int getCount();

    public int updateByPrimaryKey(Message message);
    
    public int getCountmh(String message_name);
}
